package com.ding.configuration;

/**
 * 类注释
 *
 * @author dingchengyu
 * @date 2022/2/16 15:28
 */
public class IDUtil {
    /**
     * 随机id生成，使用雪花算法
     */
    public static long getRandomId() {
        SnowflakeIdWorker sf = new SnowflakeIdWorker();
        long id = sf.nextId();
        return id;
    }

}
